﻿#include "prj_manager_edit_dialog.h"
#include "ui_prj_manager_edit_dialog.h"

PrjManagerEditDialog::PrjManagerEditDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::PrjManagerEditDialog)
{
    ui->setupUi(this);
}

PrjManagerEditDialog::~PrjManagerEditDialog()
{
    delete ui;
}

void PrjManagerEditDialog::setPrjName(const QString &prjName)
{
    ui->prjNameLineEdit->setText(prjName);
}

void PrjManagerEditDialog::setPrjDescription(const QString &prjDescription)
{
    ui->prjDescriptionTextEdit->setText(prjDescription);
}

QString PrjManagerEditDialog::getPrjName()
{
    return ui->prjNameLineEdit->text();
}

QString PrjManagerEditDialog::getPrjDescription()
{
    return ui->prjDescriptionTextEdit->toPlainText();
}
